import { axios } from '@/utils/request'

/**
 * 查询白名单ip
 *
 * @author ysg
 * @date 2024-03-01 15:48:30
 */
export function appIpAuthPage (parameter) {
  return axios({
    url: '/appIpAuth/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 白名单ip列表
 *
 * @author ysg
 * @date 2024-03-01 15:48:30
 */
export function appIpAuthList (parameter) {
  return axios({
    url: '/appIpAuth/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加白名单ip
 *
 * @author ysg
 * @date 2024-03-01 15:48:30
 */
export function appIpAuthAdd (parameter) {
  return axios({
    url: '/appIpAuth/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑白名单ip
 *
 * @author ysg
 * @date 2024-03-01 15:48:30
 */
export function appIpAuthEdit (parameter) {
  return axios({
    url: '/appIpAuth/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除白名单ip
 *
 * @author ysg
 * @date 2024-03-01 15:48:30
 */
export function appIpAuthDelete (parameter) {
  return axios({
    url: '/appIpAuth/delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 导出白名单ip
 *
 * @author ysg
 * @date 2024-03-01 15:48:30
 */
export function appIpAuthExport (parameter) {
  return axios({
    url: '/appIpAuth/export',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}
